package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 商品表
    */
@ApiModel(value="com-example-springbootdemo-entity-Product")
@TableName(value = "product")
public class Product {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="标题")
    private String title;

    /**
     * 内部条码,唯一
     */
    @TableField(value = "inner_sn")
    @ApiModelProperty(value="内部条码,唯一")
    private String innerSn;

    /**
     * 商家条码
     */
    @TableField(value = "outer_sn")
    @ApiModelProperty(value="商家条码")
    private String outerSn;

    /**
     * 视频封面
     */
    @TableField(value = "video_cover")
    @ApiModelProperty(value="视频封面")
    private String videoCover;

    /**
     * 视频
     */
    @TableField(value = "video")
    @ApiModelProperty(value="视频")
    private String video;

    /**
     * 商品图集
     */
    @TableField(value = "pictures")
    @ApiModelProperty(value="商品图集")
    private String pictures;

    /**
     * sku数据
     */
    @TableField(value = "sku_info")
    @ApiModelProperty(value="sku数据")
    private String skuInfo;

    /**
     * 属性组
     */
    @TableField(value = "attributes")
    @ApiModelProperty(value="属性组")
    private String attributes;

    /**
     * 售价
     */
    @TableField(value = "price")
    @ApiModelProperty(value="售价")
    private BigDecimal price;

    /**
     * 建议零售价
     */
    @TableField(value = "sale_price")
    @ApiModelProperty(value="建议零售价")
    private BigDecimal salePrice;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    @ApiModelProperty(value="分类ID")
    private Long categoryId;

    /**
     * 品牌ID
     */
    @TableField(value = "brand_id")
    @ApiModelProperty(value="品牌ID")
    private Long brandId;

    /**
     * 销售类型，现货，预售
     */
    @TableField(value = "sell_type")
    @ApiModelProperty(value="销售类型，现货，预售")
    private Byte sellType;

    /**
     * 标签
     */
    @TableField(value = "tags")
    @ApiModelProperty(value="标签")
    private String tags;

    /**
     * 库存
     */
    @TableField(value = "stock")
    @ApiModelProperty(value="库存")
    private Integer stock;

    /**
     * 总浏览量
     */
    @TableField(value = "views")
    @ApiModelProperty(value="总浏览量")
    private Long views;

    /**
     * 总销售量
     */
    @TableField(value = "sales")
    @ApiModelProperty(value="总销售量")
    private Long sales;

    /**
     * 收藏
     */
    @TableField(value = "favs")
    @ApiModelProperty(value="收藏")
    private Long favs;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="排序")
    private Integer sort;

    /**
     * 状态 1上架 2下架
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态 1上架 2下架")
    private Byte status;

    /**
     * 创建人
     */
    @TableField(value = "creator")
    @ApiModelProperty(value="创建人")
    private String creator;

    /**
     * 修改人
     */
    @TableField(value = "modifier")
    @ApiModelProperty(value="修改人")
    private String modifier;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "gmt_delete")
    @ApiModelProperty(value="")
    private Date gmtDelete;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDeleted;

    /**
     * 封面
     */
    @TableField(value = "cover")
    @ApiModelProperty(value="封面")
    private String cover;

    public static final String COL_ID = "id";

    public static final String COL_TITLE = "title";

    public static final String COL_INNER_SN = "inner_sn";

    public static final String COL_OUTER_SN = "outer_sn";

    public static final String COL_VIDEO_COVER = "video_cover";

    public static final String COL_VIDEO = "video";

    public static final String COL_PICTURES = "pictures";

    public static final String COL_SKU_INFO = "sku_info";

    public static final String COL_ATTRIBUTES = "attributes";

    public static final String COL_PRICE = "price";

    public static final String COL_SALE_PRICE = "sale_price";

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_SELL_TYPE = "sell_type";

    public static final String COL_TAGS = "tags";

    public static final String COL_STOCK = "stock";

    public static final String COL_VIEWS = "views";

    public static final String COL_SALES = "sales";

    public static final String COL_FAVS = "favs";

    public static final String COL_SORT = "sort";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATOR = "creator";

    public static final String COL_MODIFIER = "modifier";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_GMT_DELETE = "gmt_delete";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_COVER = "cover";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取标题
     *
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取内部条码,唯一
     *
     * @return inner_sn - 内部条码,唯一
     */
    public String getInnerSn() {
        return innerSn;
    }

    /**
     * 设置内部条码,唯一
     *
     * @param innerSn 内部条码,唯一
     */
    public void setInnerSn(String innerSn) {
        this.innerSn = innerSn;
    }

    /**
     * 获取商家条码
     *
     * @return outer_sn - 商家条码
     */
    public String getOuterSn() {
        return outerSn;
    }

    /**
     * 设置商家条码
     *
     * @param outerSn 商家条码
     */
    public void setOuterSn(String outerSn) {
        this.outerSn = outerSn;
    }

    /**
     * 获取视频封面
     *
     * @return video_cover - 视频封面
     */
    public String getVideoCover() {
        return videoCover;
    }

    /**
     * 设置视频封面
     *
     * @param videoCover 视频封面
     */
    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    /**
     * 获取视频
     *
     * @return video - 视频
     */
    public String getVideo() {
        return video;
    }

    /**
     * 设置视频
     *
     * @param video 视频
     */
    public void setVideo(String video) {
        this.video = video;
    }

    /**
     * 获取商品图集
     *
     * @return pictures - 商品图集
     */
    public String getPictures() {
        return pictures;
    }

    /**
     * 设置商品图集
     *
     * @param pictures 商品图集
     */
    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    /**
     * 获取sku数据
     *
     * @return sku_info - sku数据
     */
    public String getSkuInfo() {
        return skuInfo;
    }

    /**
     * 设置sku数据
     *
     * @param skuInfo sku数据
     */
    public void setSkuInfo(String skuInfo) {
        this.skuInfo = skuInfo;
    }

    /**
     * 获取属性组
     *
     * @return attributes - 属性组
     */
    public String getAttributes() {
        return attributes;
    }

    /**
     * 设置属性组
     *
     * @param attributes 属性组
     */
    public void setAttributes(String attributes) {
        this.attributes = attributes;
    }

    /**
     * 获取售价
     *
     * @return price - 售价
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置售价
     *
     * @param price 售价
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取建议零售价
     *
     * @return sale_price - 建议零售价
     */
    public BigDecimal getSalePrice() {
        return salePrice;
    }

    /**
     * 设置建议零售价
     *
     * @param salePrice 建议零售价
     */
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    /**
     * 获取分类ID
     *
     * @return category_id - 分类ID
     */
    public Long getCategoryId() {
        return categoryId;
    }

    /**
     * 设置分类ID
     *
     * @param categoryId 分类ID
     */
    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取品牌ID
     *
     * @return brand_id - 品牌ID
     */
    public Long getBrandId() {
        return brandId;
    }

    /**
     * 设置品牌ID
     *
     * @param brandId 品牌ID
     */
    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    /**
     * 获取销售类型，现货，预售
     *
     * @return sell_type - 销售类型，现货，预售
     */
    public Byte getSellType() {
        return sellType;
    }

    /**
     * 设置销售类型，现货，预售
     *
     * @param sellType 销售类型，现货，预售
     */
    public void setSellType(Byte sellType) {
        this.sellType = sellType;
    }

    /**
     * 获取标签
     *
     * @return tags - 标签
     */
    public String getTags() {
        return tags;
    }

    /**
     * 设置标签
     *
     * @param tags 标签
     */
    public void setTags(String tags) {
        this.tags = tags;
    }

    /**
     * 获取库存
     *
     * @return stock - 库存
     */
    public Integer getStock() {
        return stock;
    }

    /**
     * 设置库存
     *
     * @param stock 库存
     */
    public void setStock(Integer stock) {
        this.stock = stock;
    }

    /**
     * 获取总浏览量
     *
     * @return views - 总浏览量
     */
    public Long getViews() {
        return views;
    }

    /**
     * 设置总浏览量
     *
     * @param views 总浏览量
     */
    public void setViews(Long views) {
        this.views = views;
    }

    /**
     * 获取总销售量
     *
     * @return sales - 总销售量
     */
    public Long getSales() {
        return sales;
    }

    /**
     * 设置总销售量
     *
     * @param sales 总销售量
     */
    public void setSales(Long sales) {
        this.sales = sales;
    }

    /**
     * 获取收藏
     *
     * @return favs - 收藏
     */
    public Long getFavs() {
        return favs;
    }

    /**
     * 设置收藏
     *
     * @param favs 收藏
     */
    public void setFavs(Long favs) {
        this.favs = favs;
    }

    /**
     * 获取排序
     *
     * @return sort - 排序
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * 设置排序
     *
     * @param sort 排序
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * 获取状态 1上架 2下架
     *
     * @return status - 状态 1上架 2下架
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * 设置状态 1上架 2下架
     *
     * @param status 状态 1上架 2下架
     */
    public void setStatus(Byte status) {
        this.status = status;
    }

    /**
     * 获取创建人
     *
     * @return creator - 创建人
     */
    public String getCreator() {
        return creator;
    }

    /**
     * 设置创建人
     *
     * @param creator 创建人
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 获取修改人
     *
     * @return modifier - 修改人
     */
    public String getModifier() {
        return modifier;
    }

    /**
     * 设置修改人
     *
     * @param modifier 修改人
     */
    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * @return gmt_delete
     */
    public Date getGmtDelete() {
        return gmtDelete;
    }

    /**
     * @param gmtDelete
     */
    public void setGmtDelete(Date gmtDelete) {
        this.gmtDelete = gmtDelete;
    }

    /**
     * 获取是否删除，1被删除，0未删除
     *
     * @return is_deleted - 是否删除，1被删除，0未删除
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置是否删除，1被删除，0未删除
     *
     * @param isDeleted 是否删除，1被删除，0未删除
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取封面
     *
     * @return cover - 封面
     */
    public String getCover() {
        return cover;
    }

    /**
     * 设置封面
     *
     * @param cover 封面
     */
    public void setCover(String cover) {
        this.cover = cover;
    }
}